//--订单公共模块
define(function(){
	var $pop = require('../../pop');
	var $app = require('../../app');
	var $api = require('../../api');
	var unionid = $api.getStorage("shop_unionid");
	var order = new Vue();
	//--提醒发货
	order.remindSend = function(order_id){
		$app.ajax(service.buyReminderSlip,{
			data: {
				values: {
					unionid: unionid,
					order_id: order_id
				}
			}
		},function (res) {
			//console.log(JSON.stringify(res));
			if(res.code == 0){
				$pop.tip("已成功提醒卖家，会尽快为您发货！");
			}
		});
	};
	//--去付款
	order.goPayMent = function(code,money,is_group){
		$app.openWin("buyOrderPayWay",{
			pay_key: code,
			money: money,
			is_group: is_group == "1" ? true : false
		});
	}
	
	return order;
});